package cn.dianhun.om.jpa.repository;


import cn.dianhun.om.jpa.pojo.PersonEntity;
import org.springframework.data.domain.Page;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;


/**
 * @author cyt
 * @create 2020-07-10 12:03
 */
public interface PersonRepository extends JpaRepository<PersonEntity, Integer> {
    /**
     * @param specification
     * @param page
     * @return
     */
    Page<PersonEntity> findAll(Specification<PersonEntity> specification, Pageable page);
}

